package scsc.web.system.forms;

import scsc.web.system.AppActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import scsc.web.system.data.SysDictData;
import javax.servlet.http.HttpServletRequest;

public class SysDictForm
    extends AppActionForm {
  private SysDictData data;

  private SysDictData conditionData;

  public SysDictForm() {
    super();
    data = new SysDictData();
    conditionData = new SysDictData();

  }

  public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
    data.reset();
    conditionData.reset();
  }

  public ActionErrors validate(ActionMapping mapping,
                               HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();
    return errors;
  }

  /**
   * Returns the data.
   * @return SysDictData
   */
  public SysDictData getConditionData() {
    return conditionData;
  }

  /**
   * Sets the data.
   * @param data The data to set
   */
  public void setConditionData(SysDictData conditionData) {
    this.conditionData = conditionData;
  }

  /**
   * Returns the data.
   * @return SysDictData
   */
  public SysDictData getData() {
    return data;
  }

  /**
   * Sets the data.
   * @param data The data to set
   */
  public void setData(SysDictData data) {
    this.data = data;
  }

}
